package com.restaurant.application.shoplist;

import com.nebutown.description.UnitDescription;
import com.nebutown.generation.basictype.StringData;
import com.nebutown.generation.basictype.UIDLists;

public class ShopListDesc extends UnitDescription {
    public static void main(String[] args) {
        UnitDescription desc = UnitDescription.basicUnit(ShopList.class, "ShopListData");

        desc.nextBean("ShopListData")
                .add("shops", UIDLists.class)
        ;

        desc.nextBean("ShopListPageVo")
                .add("id", String.class)
                .add("name", String.class)
                .add("phone", String.class)
                .add("mail", String.class)
                .add("address", String.class)
                .add("seq", Long.class)
        ;

        desc
                .addUiFunction("insert", null)
                .addUiFunction("search", "ShopListPageVo")
                .addUiFunction("detail", null)
                .addUiFunction("edit", null)
                .addUiFunction("delete", null)
                .addUiFunction("switchPage", StringData.class.getName())
        ;
        desc.run("./");
    }
}
